<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('鸡入库列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row" id="printArea">







        <div class="col-sm-12 select-table table-striped">
            <!--            <a class="btn btn-success btn-sm fl-r " href="javascript:void(0)" id="print-btn" orderType = "13">打印</a>-->
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
            <h3> <span class="fl-l" id="autograph" hidden="hidden"></span> </h3>
        </div>


    </div>
    <div class="bottom-btns"></div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:ncInputChicken:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:ncInputChicken:remove')}]];
    var prefix = ctx + "front/innerInfo";
    var datas = [[${@dict.getType('cforderType')}]];

    var outputType = [[${outputType}]]
    $(function() {
        var options = {
            url: prefix + "/infoTotal?type=chk&outputType="+outputType+"&orderId="+[[${orderId}]],
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "鸡出库",
            showExport: false,
            showSearch: false,
            showRefresh: false,
            showColumns: false,
            showToggle: false,
            toolbar: 'toolbar1',
            columns: [
                /*{
                checkbox: true
                 },*/
                {
                    field : 'outputId',
                    title : '入库id',
                    visible: false
                },
                {
                    title: '序号',
                    formatter: function (value, row, index) {
                        return $.table.serialNumber(index);
                    }
                },
                /*{
                    field : 'cforderId',
                    title : '菜房订单id',
                    sortable: true
                },*/
                {
                    field : 'outputTime',
                    title : '出库日期',
                    sortable: true
                },
                {
                    field : 'requestAmount',
                    title : '需求数量（只',
                    sortable: true
                },
                {
                    field : 'outputAmount',
                    title : '供应数量（只）',
                    sortable: true
                },
                {
                    field : 'outputAmountBig',
                    title : '供应大鸡数量（只）',
                    sortable: true
                },
                {
                    field : 'outputAmountLittle',
                    title : '供应小鸡数量（只）',
                    sortable: true
                },
                {
                    field : 'outputType',
                    title : '出库类型',
                    sortable: true
                },
                {
                    field : 'catchTime',
                    title : '抓鸡时间',
                    sortable: true
                },
                {
                    field : 'chickenStatus',
                    title : '母鸡状态',
                    sortable: true
                },
                {
                    field : 'killTime',
                    title : '宰杀时间',
                    sortable: true
                },
                {
                    field : 'isHealthy',
                    title : '宰杀后成品母鸡标准',
                    sortable: true
                },
                {
                    field : 'butcher',
                    title : '宰杀人员',
                    sortable: true
                },
                {
                    field : 'receiveTime',
                    title : '菜房接收时间',
                    sortable: true
                },
                {
                    field : 'receiver',
                    title : '菜房接收人员',
                    sortable: true
                },
                {
                    field : 'outputUser',
                    title : '出库经手人',
                    sortable: true
                },
                /*{
                    field : 'createBy',
                    title : '创建者',
                    sortable: true
                },
                {
                    field : 'createTime',
                    title : '创建时间',
                    sortable: true
                },*/
                {
                    field : 'remark',
                    title : '备注',
                    sortable: true
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.outputId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.outputId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);

    function reload() {
        window.location.reload()
    }
    setTitle("鸡肉总产量",true)
</script>
</body>
</html>